package com.taoyun.pojo.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 *
 *  User 实体
 *
 * @author FengJingdong
 */
@Table(name = "`user`")
public class User implements Serializable {
    /**
     * 主键
     */
    @Id
    @Column(name = "`User_Id`")
    @GeneratedValue(generator = "JDBC")
    @Excel(name = "userId",orderNum = "0")
    private Integer userId;

    @Column(name = "`User_Number`")
    @Excel(name = "userNumber",orderNum = "1")
    private String userNumber;

    @Column(name = "`Name`")
    @Excel(name = "name",orderNum = "2")
    private String name;

    @Column(name = "`Sex`")
    @Excel(name = "sex",orderNum = "3")
    private String sex;

    @Column(name = "`PhoneNumber`")
    @Excel(name = "phoneNumber",orderNum = "4")
    private String phoneNumber;

    @Column(name = "`Password`")
    @Excel(name = "password",orderNum = "5")
    private String password;

    @Column(name = "`Email`")
    @Excel(name = "email",orderNum = "6")
    private String email;

    @Column(name = "`Department`")
    @Excel(name = "department",orderNum = "7")
    private String department;

    @Column(name = "`Permission`")
    @Excel(name = "permission",orderNum = "8")
    private String permission;

    @Column(name = "`State`")
    @Excel(name = "state",orderNum = "9")
    private String state;

    public User() {
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserNumber() {
        return userNumber;
    }

    public void setUserNumber(String userNumber) {
        this.userNumber = userNumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

}
